package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.SolarTermEntity;
import com.example.demo.entity.UserEntity;
import com.example.demo.mapper.UserMapper;
import com.example.demo.service.UserService;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> implements UserService {


    @Override
    public UserEntity getByUserNameAndPassword(UserEntity user) {
        return baseMapper.getByUserNameAndPassword(user);
    }

    @Override
    public Integer userRegister(UserEntity user) {

        return baseMapper.registerUser(user);
    }
}
